import http from "@/http";

//默认导出api地址
export default {
    //后台的api类型
    select:{ 
        name: '类目查询',
        url: '/api/category',
        call: async function (params: any = {}) {
            return await http.get(this.url,params)
        }
    },
    insert: {
        name: '类目添加',
        url: '/api/category',
        call: async function (params: any = {}) {
            return await http.post(this.url, params)
        }
    },
    update: {
        name: '类目修改',
        url: '/api/category',
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    delete: {
        name: '类目添加',
        url: '/api/category',
        call: async function (params: any = {}) {
            return await http.delete(this.url, params)
        }
    }
}